package com.xyx.ssm.dao;

import java.util.List;

import com.xyx.ssm.po.User;
import com.xyx.ssm.util.Page;

public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);
    //插入user
    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    
/**
 * 登陆
 * @param user
 * @return
 */
    
	User login(User user);
	
	List<User> SelectAll(Page<?> page);

	int getProductsCount();

	int getProductsCount1(Page<?> page);

	void updateUser(User user);

	
}